package com.flyee.communicate.system{
	
	import com.flyee.communicate.Handler;
	import com.flyee.io.socket.command.down.CommandDown;
	import com.flyee.ro.commanddown.ExceptionDown;
	import com.flyee.utils.Obsevable;

	public class ExceptionHandler extends Obsevable implements Handler{
		
		public function ExceptionHandler(){
			super();
		}
		
		public function process(cmd:CommandDown) : void{
			var command : ExceptionDown = cmd as ExceptionDown;
	        
	        setChanged();	        
	        notifyObsevers("dealException", command.message);
		}
		
	}
}